package com.ruoyi.an.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.an.mapper.AnSjAeaRecordMapper;
import com.ruoyi.an.domain.AnSjAeaRecord;
import com.ruoyi.an.service.IAnSjAeaRecordService;

/**
 * 司机考勤记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
@Service
public class AnSjAeaRecordServiceImpl implements IAnSjAeaRecordService 
{
    @Autowired
    private AnSjAeaRecordMapper anSjAeaRecordMapper;

    /**
     * 查询司机考勤记录
     * 
     * @param id 司机考勤记录主键
     * @return 司机考勤记录
     */
    @Override
    public AnSjAeaRecord selectAnSjAeaRecordById(Long id)
    {
        return anSjAeaRecordMapper.selectAnSjAeaRecordById(id);
    }

    /**
     * 查询司机考勤记录列表
     * 
     * @param anSjAeaRecord 司机考勤记录
     * @return 司机考勤记录
     */
    @Override
    public List<AnSjAeaRecord> selectAnSjAeaRecordList(AnSjAeaRecord anSjAeaRecord)
    {
        return anSjAeaRecordMapper.selectAnSjAeaRecordList(anSjAeaRecord);
    }

    /**
     * 新增司机考勤记录
     * 
     * @param anSjAeaRecord 司机考勤记录
     * @return 结果
     */
    @Override
    public int insertAnSjAeaRecord(AnSjAeaRecord anSjAeaRecord)
    {
        return anSjAeaRecordMapper.insertAnSjAeaRecord(anSjAeaRecord);
    }

    /**
     * 修改司机考勤记录
     * 
     * @param anSjAeaRecord 司机考勤记录
     * @return 结果
     */
    @Override
    public int updateAnSjAeaRecord(AnSjAeaRecord anSjAeaRecord)
    {
        return anSjAeaRecordMapper.updateAnSjAeaRecord(anSjAeaRecord);
    }

    /**
     * 批量删除司机考勤记录
     * 
     * @param ids 需要删除的司机考勤记录主键
     * @return 结果
     */
    @Override
    public int deleteAnSjAeaRecordByIds(Long[] ids)
    {
        return anSjAeaRecordMapper.deleteAnSjAeaRecordByIds(ids);
    }

    /**
     * 删除司机考勤记录信息
     * 
     * @param id 司机考勤记录主键
     * @return 结果
     */
    @Override
    public int deleteAnSjAeaRecordById(Long id)
    {
        return anSjAeaRecordMapper.deleteAnSjAeaRecordById(id);
    }
}
